/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

 

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;

/**
 *
 * @author James
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Parser parser = new Parser("flightData.csv");
        try {
           ArrayList<FlightData> flightDataList =  parser.readFromFile();
           Iterator<FlightData> it = flightDataList.iterator();
           while(it.hasNext()){
               FlightData fd = it.next();
               System.out.println(fd.getArrives()); //testing
           }

        } catch (FileNotFoundException ex) {
            System.out.println(ex);
        } catch (IOException ex) {
            System.out.println(ex);
        }
    }

}
